From: Owen W. Taylor Date: Thu, 9 Oct 2014 18:25:48 +0000 (-0400) Subject: gdm: fix missing braces X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~2027 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=6a969b934ff36df8133f6ab7ac97ff6bc48ac702;p=gnome-shell.git gdm: fix missing braces Incorrect braces meant that if the ShellUserVerifier was destroyed before the call to fprintManager.GetDefaultDeviceRemote(), the reply would result in an error. https://bugzilla.gnome.org/show_bug.cgi?id=738256 --- diff --git a/js/gdm/util.js b/js/gdm/util.js index 6ddd3716e..4bfaf7c27 100644 --- a/js/gdm/util.js +++ b/js/gdm/util.js @@ -300,9 +300,10 @@ const ShellUserVerifier = new Lang.Class({ this._fprintManager.GetDefaultDeviceRemote(Gio.DBusCallFlags.NONE, this._cancellable, Lang.bind(this, function(device, error) { - if (!error && device) + if (!error && device) { this._haveFingerprintReader = true; this._updateDefaultService(); + } })); },